草庐IT

windows - Heroku 页面 :pull failing to populate schema

全部标签

ruby - 根据 Windows 上的每个请求重新加载 Sinatra 应用程序

我已经根据这个thread设置了Rack::Reload#config.rurequire'rubygems'require'sinatra'set:environment,:developmentrequire'app'runSinatra::Application#app.rbclassSinatra::Reloader通过thinstart-Rconfig.ru使用thin运行,但它只会重新加载新添加的路由。当我更改现有路线时,它仍会运行旧代码。当我添加新路由时,它会正确地重新加载它,因此它可以访问,但它不会重新加载任何其他内容。例如,如果我将路线更改为get'/'do'bar'

ruby - 在 Windows XP 中安装 Ruby Curb gem

我正在尝试使用ruby​​1.8进行文件上传,但似乎没有好的现成解决方案。他们似乎都需要一些第3方补丁或项目的分支才能工作。我会使用mechanize,但实际上我需要与xmlapi接口(interface),而mechanize似乎是专门为直接处理网页而设计的。我已经尝试过RestClient但它没有开箱即用的多部分表单功能,您必须使用项目的分支才能使其工作。Net:HTTP似乎也存在类似情况我认为curb是可行的方法,因为无论如何我可能都想使用multicurl来完成我计划做的其他事情。但是,在我的Windows机器上,我似乎无法安装curbgem。geminstallcurb给出了

ruby-on-rails - Heroku Drop Table Rails 帮助

我正在使用RubyonRails,我不再需要我的表Order,所以我使用SQLite管理器删除了它。我怎样才能在heroku中删除表?编辑我收到错误db/migrate/20110806052256_droptableorders.rb:10:syntaxerror,unexpectedkeyword_end,expecting$end当我运行命令时classDropTableOrder 最佳答案 如果你不想创建一个迁移来删除表并且不能回滚以前的迁移,因为你不想丢失迁移后创建的表中的数据,你可以在heroku控制台上使用以下命令来放

ruby-on-rails - Heroku 上的不兼容编码正则表达式匹配(ASCII-8BIT 正则表达式与 UTF-8 字符串)

我有一个Rails应用程序,我在其中使用基于正则表达式的规则对事务进行分类。在我的seeds.rb中,我创建了一些类别和规则,然后从CSV文件(也是utf8编码)导入交易并允许对它们进行分类。这个过程在我的开发机器上运行良好,但是当我在Heroku上运行它时,我得到:incompatibleencodingregexpmatch(ASCII-8BITregexpwithUTF-8string)我正在运行CedarStack,Rails2.3.15。我放了#encoding:utf-8在我所有源文件的顶部,我在我的应用程序配置中将编码设置为utf-8,所以我不确定还有什么可能导致此问题。

ruby - Heroku 应用程序崩溃并显示 'libruby.so.1.9: cannot open shared object file'

这个问题不太可能帮助任何future的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visitthehelpcenter.关闭10年前。我在部署这个应用程序时从未遇到过问题,但我刚刚推送,现在我遇到了这个奇怪的错误,它在堆栈中足够深,甚至没有被发送到Airbrake。我觉得这可能是Heroku的问题,可能与https://status.heroku.com/incidents/450有关。?你怎么看?2012-10-14T08:40:31+00:00heroku[web.1]:State

ruby-on-rails - 无法在 Windows 7 上安装 Rmagick 和 Imagemagick

当我从rmagick-2.13.1.gem所在的目录运行geminstallrmagick-2.13.1.gem时,我收到一条错误消息,指出它无法构建gemnative扩展,如下所示它说c:/Ruby192/bin/ruby.exeextconf.rbcheckingforRubyversion>=1.8.5...yesUnabletogetImagemagickversion***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.

ruby - 在 Jekyll 中创作存档页面

我正在尝试在Github页面上使用Jekyll创建一个多作者博客。我将authors数组字段添加到_config.yml,我可以在帖子模板上使用该数据。_config.yml:authors:muratcorlu:display_name:MuratCorluavatar:2906955ae59c795275979d3782d7bfcaposts.html{%assignauthor=site.authors[page.author]%}Author:{{author.display_name}}现在我想制作一个作者存档页面,其url类似于/authors/muratcorlu/(即列

ruby-on-rails - Rails Heroku 服务器回形针 Amazon S3 - AWS::S3::Errors::RequestTimeout

当我用附加图像保存我的konkurrencer模型时,我在Heroku上收到错误,但在我的本地服务器上没有。.我的heroku日志:←[36m2012-04-01T17:45:37+00:00app[web.1]:←[0mStartedPOST"/admin/konkurrencers"forMYIPat2012-04-0110:45:37-0700←[33m2012-04-01T17:46:01+00:00heroku[router]:←[0mPOSTwww.konkurrencerher.dk/admin/konkurrencersdyno=web.1queue=0wait=0ms

ruby-on-rails - 路由错误页面 404

当用户尝试访问不存在的路由时,我有一个异常ActionController::RoutingError。如何将用户重定向到404.html页面或在该页面上呈现错误?例如:当我尝试访问https://github.com/someuser时我在该URL上收到404页面。我在应用程序Controller中试过这个但没有成功:rescue_fromActionController::RoutingErrordo|exception|render'/public/404.html'end 最佳答案 这是一个known问题。你应该看看那里发表

ruby-on-rails - 为什么 Rake 任务增强在我的本地环境和部署到 Heroku Cedar 时有所不同?

我在lib/tasks/foo.rake中有这个:Rake::Task["assets:precompile"].enhancedoprint">>>>>>>>hellofromprecompile"endRake::Task["assets:precompile:nondigest"].enhancedoprint">>>>>>>>hellofromprecompile:nondigest"end当我在本地运行rakeassets:precompile时,两条消息都会被打印出来。当我推送到heroku时,只打印非摘要消息。然而,accordingtothebuildpack,推送正在